<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.edit_user} - {$rs.username}</h3>
        <ul class="tab1" id="submenu">
            <li id="nav_account" onclick="showanchor(this)" class="current"><a href="#"><span>{$Think.lang.user_account}</span></a></li>
            <li id="nav_profile" onclick="showanchor(this)"><a href="#"><span>{$Think.lang.user_profile}</span></a></li>
            <li id="nav_preference" onclick="showanchor(this)"><a href="#"><span>{$Think.lang.user_preference}</span></a></li>
            <li id="nav_statistics" onclick="showanchor(this)"><a href="#"><span>{$Think.lang.user_statistics}</span></a></li>
        </ul>
    </div>
    <form name="cpform" method="post" action="__URL__/editUser">
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="user_id" value="{$rs.user_id}" />
    <table class="tb tb2">
        <tbody id="statistics" style="display:none">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.username}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.username}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_group}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.user_group|get_group_name}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.point_count}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.point_count}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.question_count}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.question_count}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.answer_count}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.answer_count}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.best_answer_count}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.best_answer_count}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.register_date}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.register_date}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.register_ip}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.register_ip}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.last_activity}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.last_activity|date='Y-m-d H:i',###}</td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.last_ip}:</td></tr>
        <tr>
            <td class="vtop rowform">{$rs.last_ip}</td>
            <td class="vtop tips2"></td>
        </tr>
        </tbody>

        <tbody id="account">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_email}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="email" value="{$rs.email}" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.confirm_email}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="email_confirm" value="" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.confirm_email_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.admin_group}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="admin_group">
                    <option value="0">{$Think.lang.none}</option>
                    <volist name="adminGroups" id="vo">
                    <option value="{$vo.group_id}" <if condition="$vo.group_id eq $rs['admin_group']">selected</if>>&gt;&nbsp;{$vo.name}</option>
                    </volist>
                </select>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.new_pwd}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="new_password" value="" type="password" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.confirm_pwd}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="password_confirm" value="" type="password" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.confirm_pwd_explain}</td>
        </tr>
        </tbody>

        <tbody id="profile" style="display:none">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_gender}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="gender" radios="genderRadios" checked="genderChecked" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_birthday}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="birthday" value="{$rs.birthday}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.user_birthday_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_website}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="website" value="{$rs.website}" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_location}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="location" value="{$rs.location}" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_about}:</td></tr>
        <tr>
            <td colspan="2"><html:markitup mode="bbcode" id="about" name="about" content="{$rs.about}" /></td>
        </tr>
        </tbody>

        <tbody id="preference" style="display:none;">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_language}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:select name="language" options="languageOptions" selected="languageSelected" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_timezone}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:select name="timezone" options="timezoneOptions" selected="timezoneSelected" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.user_theme}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:select name="theme" options="themeOptions" selected="themeSelected" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.new_answer_alert}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="new_answer_alert" radios="newAnswerAlertRadios" checked="newAnswerAlertChecked" /></td>
            <td class="vtop tips2">{$Think.lang.new_answer_alert_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.new_comment_alert}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="new_comment_alert" radios="newCommentAlertRadios" checked="newCommentAlertChecked" /></td>
            <td class="vtop tips2">{$Think.lang.new_comment_alert_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.best_answer_alert}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="best_answer_alert" radios="bestAnswerAlertRadios" checked="bestAnswerAlertChecked" /></td>
            <td class="vtop tips2">{$Think.lang.best_answer_alert_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.new_follower_alert}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="new_follower_alert" radios="newFollowerAlertRadios" checked="newFollowerAlertChecked" /></td>
            <td class="vtop tips2">{$Think.lang.new_follower_alert_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.allow_follow}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="allow_follow" radios="allowFollowRadios" checked="allowFollowChecked" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.allow_contact}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="allow_contact" radios="allowContactRadios" checked="allowContactChecked" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.allow_newsletter}:</td></tr>
        <tr>
            <td class="vtop rowform"><html:radio name="allow_newsletter" radios="allowNewsletterRadios" checked="allowNewsletterChecked" /></td>
            <td class="vtop tips2"></td>
        </tr>
        </tbody>

        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
